<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>


        <ui:composition template="/index.xhtml">
            <ui:define name="content">
                <h:outputText value="#{vacancyManagedBean.mess}"/>
                <f:view>
                    <h:form>
                        <h:dataTable columnClasses="bd_td1,bd_td,bd_td,bd_td,bd_td" cellpadding="3" cellspacing="1" border="0" styleClass="#{vacancyManagedBean.styleClass}"
                                     rowClasses="#{vacancyManagedBean.rowClasses}}" headerClass="#{vacancyManagedBean.headerClass}" value="#{vacancyManagedBean.findbyVacyTitleList}" var="item">
                            <h:column >
                                <f:facet name="header">
                                    <h:outputText value="#{vacancyManagedBean.vacantyTitle}"/>
                                </f:facet>
                                <h:commandLink action="#{vacancyManagedBean.showVacancyDetails(item)}" value="#{item.vacantyTitle}" >
                                    <f:setPropertyActionListener value="#{item}" target="#{vacancyManagedBean.vacancyDetails}"  />
                                </h:commandLink>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="${vacancyManagedBean.numOfJob}"/>
                                </f:facet>
                                <h:outputText value="#{item.numOfJob}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="${vacancyManagedBean.salary}"/>
                                </f:facet>
                                <h:outputText value="#{item.salary}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="${vacancyManagedBean.experience}"/>
                                </f:facet>
                                <h:outputText value="#{item.experience}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="${vacancyManagedBean.closeDate}"/>
                                </f:facet>
                                <h:outputText value="#{item.closeDate}">
                                    <f:convertDateTime pattern="MM/dd/yyyy" />
                                </h:outputText>
                            </h:column>

                        </h:dataTable>
                    </h:form>
                </f:view>




            </ui:define>


        </ui:composition>

    </h:body>
</html>

